//
//  D_MyMusicCollectionViewCell.m
//  音悦咖
//
//  Created by dllo on 15/5/1.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "D_MyMusicCollectionViewCell.h"
#import "BaseHeader.h"
@implementation D_MyMusicCollectionViewCell

- (void)dealloc
{
    [_songLable release];
    [_singerLable release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    [super initWithFrame:frame];
    if (self) {
        self.songLable = [[UILabel alloc] init];
        [self.songLable setFont:[UIFont fontWithName:nil size:23]];
        self.songLable.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.songLable];
        [_songLable release];
       
        self.singerLable = [[UILabel alloc] init];
        self.singerLable.font = [UIFont fontWithName:nil size:14];
        self.singerLable.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.singerLable];
        [_singerLable release];

    }
    
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    [super applyLayoutAttributes:layoutAttributes];
    self.songLable.frame = CGRectMake(20, 5, 200, 20);
    self.songLable.textColor = [UIColor whiteColor];
    self.singerLable.frame = CGRectMake(60, 30, 150, 20);
    self.singerLable.textColor = [UIColor whiteColor];
    
}

#pragma mark - 推荐详情页面赋值
- (void)setRecommendPlayModel:(L_RecommendPlayModel *)recommendPlayModel
{
    if (_recommendPlayModel != recommendPlayModel) {
        [_recommendPlayModel release];
        _recommendPlayModel = [recommendPlayModel retain];
    }
    
    // 赋值
    self.songLable.text = recommendPlayModel.song_name;
    self.singerLable.text = recommendPlayModel.singer_name;
    
    
}




@end
